package com.bkgy.modular.yieldReport.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bkgy.modular.yieldReport.dto.TbDsjActWeightDto;
import com.bkgy.modular.yieldReport.entity.YieldReport;
import com.bkgy.modular.yieldReport.mapper.YieldReportMapper;
import com.bkgy.modular.yieldReport.service.YieldReportService;
import com.bkgy.sys.common.entity.ResultData;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author
 * @version 1.0
 * @ClassName YieldReportServiceImpl
 * @date 2023/3/31 16:45
 */
@Service
public class YieldReportServiceImpl extends ServiceImpl<YieldReportMapper, YieldReport> implements YieldReportService {
    @Resource
    private YieldReportMapper yieldReportMapper;

    @Override
    public ResultData findByData(TbDsjActWeightDto dto) {
        List<YieldReport> byData = yieldReportMapper.findByData(dto);
        return ResultData.ResultDataFaultSelf("操作成功",byData);
    }
}